package com.gxa.jd.service;

import com.gxa.jd.pojo.Goods;
import com.gxa.entity.PageResult;

import java.util.*;

/**
 * goods业务逻辑层
 */
public interface GoodsService {

    public List<Goods> findAll();

    public PageResult<Goods> findPage(int page, int size);

//    public List<Goods> findList(Map<String, Object> searchMap);

//    public PageResult<Goods> findPage(Map<String, Object> searchMap, int page, int size);

//    public Goods findById(Long id);

    public void add(Goods goods);

    public void update(Goods goods);

    public void delete(Long id);

}
